﻿using System;

namespace DevelopersTestPad.AppFrame
{
    /// <summary>
    /// Provides data for the app command events.
    /// </summary>
    internal sealed class AppCommandEventArgs : EventArgs
    {
        private readonly AppCommandType _command;

        /// <summary>
        /// Initializes a new instance of the <see cref="AppCommandEventArgs"/> class.
        /// </summary>
        /// <param name="command">The app command type.</param>
        public AppCommandEventArgs(AppCommandType command)
        {
            _command = command;
        }

        /// <summary>
        /// The app command type.
        /// </summary>
        public AppCommandType Command { get { return _command; } }

        /// <summary>
        /// Is the command handled or not.
        /// </summary>
        public bool Handled { set; get; }
    }
}
